#include<cstdio>
#include<iostream>
#include<algorithm>

using namespace std;
string a,b,c;
int n;


int main()
{
	scanf("%d",&n);
	int x=0,y=0;
	cin>>a;
	x++; 
	for(int i=1;i<n;i++){
		cin>>c;
		if(c==a) x++;
		else {
			b=c;
			y++;
		}
	}
	if(x>y) cout<<a<<endl;
	else  cout<<b<<endl;
	return 0;
}
